<?php 
include("includes/code.php");

if(isset($_GET['search'])) { $search = $_GET['search']; }

$search = trim($search);
$search = addslashes($search);
$search = htmlspecialchars($search);

$title = $lang['search_result'];

///// headerni olamiz
include("includes/header.php"); 
?>

<!-- content and sidebar -->
<div id="main">
<table class="main_table" cellspacing="0" cellpadding="0">
  <tr valign="top">
    <td class="left_col">
<!-- ------------- left start ------------- -->
<?php include("includes/left.php"); ?>
    
<!-- ----------------- left finish ---------------- -->
    </td>
    <td>
<div class="content">
<!-- content start -->

<h4 class="sarlavha"><?php echo $title; ?></h4>

<!--tovarlar -->
<?php 
if (empty($search) or strlen($search) < 2)
{
echo "<p>Qidiruvga kamida 2 ta harf yozing";
}
else 
{
tovarlar("search");
}
?>
<div style="clear:both"></div>
<p><a href="all.php"> <?=$lang['all']; ?> &gt;  </a></p>
<!--tovarlar // -->

<!-- content finish -->
</div>
    </td>
    <td class="right_col">
<!-- -------- right start ----------- -->
<?php include("includes/right.php"); ?>
<!-- --------- right finish ------- -->
    </td>
  </tr>
</table>

</div>
<!-- content and sidebar finish -->

</div>
<!-- main container finish -->
<?php include("includes/footer.php"); ?>